package com.tarena.lbs.basic.web.config;

import com.tarena.lbs.common.passport.encoder.JwtEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtEncoderConfig {

    @Bean
    public JwtEncoder initEncoder(){
        JwtEncoder jwtEncoder = new JwtEncoder();
        //提供一个盐字符串
        jwtEncoder.setSecret("tarena2024Up;");
        return jwtEncoder;
    }
}
